package cn.com.spic.demo.api;

import cn.com.spic.demo.constants.AppInfoConstant;
import cn.com.spic.demo.dto.ContractDTO;
import cn.com.spic.demo.dto.ContractSearchVO;
import com.yonyou.cloud.middleware.rpc.RemoteCall;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.io.Serializable;

/**
 * <b>Description:RPC合同查询接口</b><br>
 *
 * @author <a href="http://ny.yonyou.com" target="_blank">Administrator</a>
 * @version 1.0
 * @Note <b>ProjectName:</b> demo-contract-api
 * <br><b>PackageName:</b> cn.com.spic.demo.api
 * <br><b>ClassName:</b> ContractQueryService
 * <br><b>Date:</b> 2019年9月20日 下午4:14:37
 */
@RemoteCall(AppInfoConstant.APP_INF_PROVIDER)
public interface ContractQueryService {

    ContractDTO save(ContractDTO contract);

    ContractSearchVO getById(Serializable id);

    int deleteById(String id);

    Page<ContractSearchVO> page(Pageable pageable);

}
